<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://www.codecoord.com" %>
<%@ taglib prefix="fmt" uri="http://www.fmt.com" %>
<!DOCTYPE html>
<html lang="en" class="fly-html-layui fly-html-store">
<head>
          <%
        pageContext.setAttribute("APP_PATH", request.getContextPath());
    %>
     <meta name="renderer" content="webkit">
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
     <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     <link rel="stylesheet" href="${APP_PATH}/statics/front/layui/dist/css/layui.css">
     <link rel="stylesheet" href="${APP_PATH}/statics/front/css/global.css" charset="utf-8">
     <link rel="stylesheet" href="${APP_PATH}/statics/front/css/global(1).css" charset="utf-8">
     <link rel="stylesheet" href="${APP_PATH}/statics/front/css/store.css" charset="utf-8">
     <link rel="icon" href="${APP_PATH}/statics/front/images/favicon.ico">
     <title>shop商城</title>
<body>
<!-- 顶部start -->
<div class="layui-header header header-store" style="background-color: #393D49;">
     <div class="layui-container">
          <a class="logo" href="index.html">
               <img src="${APP_PATH}/statics/front/images/logo.png" alt="layui">
          </a>
          <div class="layui-form component" lay-filter="LAY-site-header-component"></div>
          <ul class="layui-nav" id="layui-nav-userinfo">
               <li data-id="index" class="layui-nav-item layui-hide-xs"><a class="fly-case-active" data-type="toTopNav"
                                                                                      href="/index.html">首页</a></li>
               <li data-id="room" class="layui-nav-item layui-hide-xs"><a class="fly-case-active"
                                                                          data-type="toTopNav"
                                                                          href="/items/list.html">商品类型</a></li>
               <li data-id="register" class="layui-nav-item layui-hide-xs layui-this " ><a class="fly-case-active" data-type="toTopNav"
                                                                               href="/notice.html">商城公告</a></li>
               <li data-id="login" class="layui-nav-item layui-hide-xs "><a class="fly-case-active" data-type="toTopNav"
                                                                            href="/login.jsp">登入</a></li>
               <li data-id="register" class="layui-nav-item layui-hide-xs "><a class="fly-case-active" data-type="toTopNav"
                                                                               href="/register.jsp">注册</a></li>
               <li data-id="register" class="layui-nav-item layui-hide-xs "><a class="fly-case-active" data-type="toTopNav"
                                                                               href="/user/toUser.html">个人中心</a></li>
               <span class="layui-nav-bar" style="left: 560px; top: 55px; width: 0px; opacity: 0;"></span></ul>
     </div>
</div>
<div>
     <h1 style="font-size: 36px; color: #ff674f" >公告基本信息</h1></legend>
     <table class="layui-table">
          <colgroup>
               <col width="150">
               <col>
               <col width="200">
          </colgroup>
          <thead>
          <tr>
               <th>标题</th>
               <th>内容</th>
               <th>发布时间</th>
          </tr>
          </thead>
          <c:forEach var="notice" items="${noticeList}" varStatus="stauts">
               <tr>
                    <td>${notice.title}</td>
                    <td>${notice.content}</td>
                    <td><fmt:formatDate value="${notice.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
               </tr>
          </c:forEach>

          </tbody>
     </table>
</div>
</body>
</html>
